<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
header('content-type:text/html;charset=utf-8');
$db=new mysqli('127.0.0.1','root','','db_bbs','3306');
if ($db->connect_error) {
    die("连接失败: " . $db->connect_error);
} 
$db->query('set names utf8');
